package com.hertz.appr.pojo.db;

import org.springframework.web.util.HtmlUtils;

import com.hertz.appr.service.ActionService;



/**
 * Answer entity. @author MyEclipse Persistence Tools
 */

public class Answer  implements java.io.Serializable {


    // Fields    

     /**
	 * 
	 */
	private static final long serialVersionUID = -192345036868299890L;
	private Long id;
     private String tid;
     private String uid;
     private String nick;
     private String provider;
     private String value;
     private String origtext;
     private Long actionId;
     private Long createTime;
     private Long systemTime;


    // Constructors

    /** default constructor */
    public Answer() {
    }

	/** minimal constructor */
    public Answer(Long id, String tid, String uid, String nick, String provider, String value, String origtext, Long actionId, Long createTime, Long systemTime) {
        this.id = id;
        this.tid = tid;
        this.uid = uid;
        this.nick = nick;
        this.provider = provider;
        this.value = value;
        this.origtext = origtext;
        this.actionId = actionId;
        this.createTime = createTime;
        this.systemTime = systemTime;
    }
    

   
    // Property accessors

    public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }

    public String getTid() {
        return this.tid;
    }
    
    public void setTid(String tid) {
        this.tid = tid;
    }

    public String getUid() {
        return this.uid;
    }
    
    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getNick() {
        return this.nick;
    }
    
    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getProvider() {
        return this.provider;
    }
    
    public void setProvider(String provider) {
        this.provider = provider;
    }

    public String getValue() {
        return this.value;
    }
    
    public void setValue(String value) {
        this.value = value;
    }

    public String getOrigtext() {
        return origtext;
    }
    public String getOrigtextEscape() {
        return HtmlUtils.htmlEscape(this.origtext);
    }
    public void setOrigtext(String origtext) {
        this.origtext = origtext;
    }

    public Long getActionId() {
        return this.actionId;
    }
    
    public void setActionId(Long actionId) {
        this.actionId = actionId;
    }

    public Long getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getSystemTime() {
        return this.systemTime;
    }
    
    public void setSystemTime(Long systemTime) {
        this.systemTime = systemTime;
    }
   
    @Override
	public String toString(){
		return "Answer{" +
		" provider=" + String.format("%1$4S", provider) +
		" nick=" + String.format("%1$15S", nick) +
		", aid=" + String.format("%1$8S", actionId) +
		", aidStr=" + String.format("%1$6S", ActionService.getActionId62Hex(actionId)) +
		", value=" + String.format("%1$-10S", value) +
        ", systemTime='" + this.systemTime + '\'' +
        '}';
	}







}